/**
 * 
 */
package cn.antia.cep.timer;

import java.util.Calendar;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;

import cn.antia.cep.common.AntiaException;
import cn.antia.cep.common.AntiaLog;
import cn.antia.cep.report.VisitRepair;

/**
 * @author sunkeei
 *
 */
public class MonthVisitStatJob extends QuartzJobBean {
	private VisitRepair visitRepair;
	public VisitRepair getVisitRepair() {
		return visitRepair;
	}
	public void setVisitRepair(VisitRepair visitRepair) {
		this.visitRepair = visitRepair;
	}

	protected void executeInternal(JobExecutionContext arg0)
			throws JobExecutionException {
		Calendar calendar = Calendar.getInstance();
		int y = calendar.get(Calendar.YEAR);
		int m = calendar.get(Calendar.MONTH);
		/*
		try{
			visitRepair.repairVisitStatMonth(y, m);
		}catch(AntiaException e){
			AntiaLog.error("定时更新月仿问量出现异常。");
		}
		*/
		AntiaLog.info("定时更新月仿问量完毕。");
	}
}